package com.myopen.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.myopen.kit.RequestKit;

/**
 * 用于保存上下文Request
 * @author wangsanfei
 *
 */
public class RequestInterceptor implements Interceptor{

	@Override
	public void intercept(Invocation inv) {
		RequestKit.put(inv.getController().getRequest());
		inv.invoke();
	}

}
